﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GraphUserControl.ascx.cs" Inherits="Danser_AJAXEnabledWebApplication.User_Controls.GraphControl.GraphUserControl" %>
<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<%@ Register src="~/User Controls/MultiSelectList.ascx" tagname="MultiSelectList" tagprefix="uc2" %>
<style type="text/css">
    .style1
    {
        height: 35px;
        width: 280px;
    }
</style>
<asp:Panel ID="GraphPanel" runat="server" >
    <table>
        <tr>
            <td valign="top" width="200px">
                <asp:Label ID="selectLabel" runat="server" Font-Bold="True" 
                 Font-Names="Arial" Font-Size="10pt" ForeColor="MidnightBlue" 
                 Text="Select columns to display:"></asp:Label>
            </td>
            <td align="left" valign="top" width="80px">
                <uc2:MultiSelectList ID="columnsMultiSelectList" runat="server" />
            </td>
            <td align="left" valign="top">
                <asp:Button ID="filterButton" runat="server" BackColor="MidnightBlue" 
                BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                Font-Names="Arial" ForeColor="White" OnClick="ConfirmButton_Click" 
                Text="Confirm" ToolTip="Display selected fields only" Width="70px" />
            </td>
        </tr>
        <tr>
            <td class="style1" colspan="3" valign="top" width="200px">
                <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
                </CR:CrystalReportSource>
            </td>
        </tr>
        <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
            AutoDataBind="True" BestFitPage="True" DisplayToolbar="False" Height="50px" 
            ReportSourceID="CrystalReportSource1" Width="350px" />
    </table>
<asp:GridView ID="testDataGridView" runat="server" AutoGenerateColumns="False" 
                                            DataKeyNames="TestParamsIndex,TestInfoIndex,Attenuation" 
                                            DataSourceID="testResultsObjectDataSource" 
                                            EmptyDataText="-- No data to display --" 
                                            Width="100%" AllowPaging="True" PageSize="50" BorderColor="Black" BorderStyle="Solid" 
                                            BorderWidth="1px" Visible="false">
                                                                                    
                                            <Columns>
                                                <asp:BoundField DataField="RXMin" HeaderText="RX Min" ReadOnly="True" 
                                                    SortExpression="RXMin">
                                                 </asp:BoundField>
                                                <asp:BoundField DataField="RXAvg" HeaderText="RX Avg" ReadOnly="True" 
                                                    SortExpression="RXAvg">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="RXMax" HeaderText="RX Max" ReadOnly="True" 
                                                    SortExpression="RXMax">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TXMin" HeaderText="TX Min" ReadOnly="True" 
                                                    SortExpression="TXMin">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TXAvg" HeaderText="TX Avg" ReadOnly="True" 
                                                    SortExpression="TXAvg">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="TXMax" HeaderText="TX Max" ReadOnly="True" 
                                                    SortExpression="TXMax">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="RSSI1" HeaderText="RSSI 1" ReadOnly="True" 
                                                    SortExpression="RSSI1">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="RSSI2" HeaderText="RSSI 2" ReadOnly="True" 
                                                    SortExpression="RSSI2">
                                                </asp:BoundField>
                                                <asp:BoundField DataField="RSSI3" HeaderText="RSSI 3" ReadOnly="True" 
                                                    SortExpression="RSSI3">
                                                </asp:BoundField>
                                            </Columns>
                                            
                                        </asp:GridView>
</asp:Panel>
